local skel = fk.CreateSkill {
  name = "emo__bingjia",
  tags = {Skill.Compulsory},
}

Fk:loadTranslationTable{
  ["emo__bingjia"] = "冰甲",
  [":emo__bingjia"] = "锁定技，结束阶段，若你体力值为1且没有护甲，你获得1点护甲。",
}

skel:addEffect(fk.EventPhaseStart, {
  anim_type = "defensive",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(skel.name) and player.shield == 0 and player.hp == 1 and player.phase == Player.Finish
  end,
  on_use = function(self, event, target, player, data)
    player.room:changeShield(player, 1)
  end,
})

return skel
